using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
namespace NewFormatProject.Server.Instances.Extends.Requests
{
	public static class EntitySysDepartmentsExtend
{
		public static SysDepartments ToEntity(this RequestSysDepartmentsDto dto)
		{
			return new SysDepartments
			{
				DId = dto.id,
				DName = dto.name,
				DDescription = dto.description,
				DParentId = dto.parentId,
			};
		}
	}
}
